﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IncentiveClosed.aspx.cs"
    Inherits="sWarranty.WEB.IncentiveClosed" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="../UC/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../CSS/table.css" />
    <link rel="stylesheet" type="text/css" href="../CSS/Menu.css" />
    <link href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" rel="stylesheet"
        type="text/css" />
    <script src="../JS/jquery-1.8.2.js" type="text/javascript"></script>
    <script src="../JS/Menu.js" type="text/javascript"></script>
    <script src="../JS/jquery-ui.js" type="text/javascript"></script>
    <script src="../JS/notify.js" type="text/javascript"></script>
    <link href="../CSS/notify.css" rel="stylesheet" type="text/css" />
    <link href="../JS/chosen-master/chosen/chosen.css" rel="stylesheet" type="text/css" />
    <script src="../JS/chosen-master/chosen/chosen.jquery.js" type="text/javascript"></script>
    <script src="../JS/jquery.stickytableheaders.js" type="text/javascript"></script>
    <script>
        $(document).ready(function () {
            $("table").stickyTableHeaders();
            SetLogger();
        });

    </script>
    <style type="text/css">
        .chzn-select {
            margin-left: 0px;
        }
        .auto-style1 {
            padding: 7px 17px 7px 17px;
            font-weight: bold;
            border-bottom: 1px dashed #cd698b;
            background-color: #F7F7F7;
            width: 18px;
            height: 38px;
        }
        .auto-style2 {
            width: 169px;
            height: 38px;
        }
        .auto-style3 {
            width: 201px;
            height: 38px;
        }
        .auto-style4 {
            padding: 7px 17px 7px 17px;
            font-weight: bold;
            border-bottom: 1px dashed #cd698b;
            background-color: #F7F7F7;
            height: 38px;
        }
        .auto-style5 {
            padding: 7px 17px 7px 17px;
            font-weight: bold;
            border-bottom: 1px dashed #cd698b;
            background-color: #F7F7F7;
            width: 83px;
            height: 38px;
        }
        .auto-style7 {
            height: 38px;
        }
        .auto-style8 {
            height: 38px;
            width: 101px;
        }
        .auto-style9 {
            width: 174px;
            height: 38px;
        }
        .RadGridCustomClass {}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ksdjfl" runat="server">
    </asp:ScriptManager>
    <uc1:Header ID="Header1" runat="server" />
    <div class="Mid">
        <div class="Mid1">
            <div id="DataContent">
                <%-- <div>
                    Nội dung bên trái
                </div>--%>
                <div>
                    <div id="divCreate" style="width: 100%">
                        <div class="TitleTab">
                            <ul>
                                <li><a href="SchemeBalance.aspx">Incentive Balance</a> </li>
                                <li><a href="IncentiveClosed.aspx" class="TitleTab_act">Closed Incentive</a></li>
                            </ul>
                        </div>
                        <!-- DataGrid Start -->
                        <div class="Mid2">
                            <div class="Search2">
                                <table id="newspaper-b">
                                    <tbody>
                                        <tr>
                                        <td class="auto-style3">
                                                <asp:TextBox ID='txtShopCode' ToolTip="Shop Code" Width="60px" ClientIDMode="Static" runat="server"></asp:TextBox>
                                                <asp:TextBox ID='txtShopName' Width="107px" ToolTip="Shop Name" ClientIDMode="Static" runat="server"></asp:TextBox>
                                            </td>
                                            <td class="auto-style1">
                                                Period:
                                            </td>
                                            <td class="auto-style2">
                                                <asp:DropDownList ID="dropYear" runat="server" CssClass="chzn-select" Width="73px"
                                                    data-placeholder="..Year.." Height="16px">
                                                </asp:DropDownList>
                                                <asp:DropDownList ID="dropMonth" runat="server" CssClass="chzn-select" Width="68px"
                                                    data-placeholder="From" Height="16px">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="auto-style4">
                                                Region:
                                            </td>
                                            <td class="auto-style8">
                                                <asp:DropDownList ID="dropRegion" runat="server" CssClass="chzn-select" Width="102%" Height="16px">
                                                    <asp:ListItem Value="00" Text="All"></asp:ListItem>
                                                    <asp:ListItem Value="01" Text="NORTH"></asp:ListItem>
                                                    <asp:ListItem Value="02" Text="MIDDLE"></asp:ListItem>
                                                    <asp:ListItem Value="03" Text="SOUTH"></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td class="auto-style5">
                                                Option:
                                            </td>
                                            <td style="padding-right: 0px; border-right-style: none; border-right-color: inherit; border-right-width: medium;" class="auto-style9">
                                                <asp:DropDownList ID="dropOption" ClientIDMode="Static" runat="server" CssClass="chzn-select"
                                                    Width="129%" Height="16px">
                                                    <asp:ListItem Value="SUMMARY" Text="SUMMARY"></asp:ListItem>
                                                    <asp:ListItem Value="DETAIL" Text="DETAIL"></asp:ListItem>
                                                    <asp:ListItem Value="MORE..." Text="MORE..."></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            
                                            <td class="auto-style7">
                                                <asp:Button ID="btnSearch" runat="server" Text="Search" Width="80px" OnClick="btnSearch_Click"
                                                    CssClass="button" />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                                <!-- DataGrid End -->
                            </div>
                        </div>
                        <div class="Clear_both">
                        </div>
                    </div>
                    <div class="TitleCont">
                        Information Detail
                        <asp:Button ID="btnExcel" runat="server" OnClick="btnExcel_Click" Width="80px" CssClass="button Float-right"
                            Text="Export" />
                    </div>
                    <div style="overflow: auto;">
                        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" CellSpacing="0"
                            OnGroupsChanging="RadGrid1_GroupsChanging" CssClass="RadGridCustomClass" GridLines="None"
                            ShowGroupPanel="True" OnNeedDataSource="RadGrid1_NeedDataSource" Skin="Office2007"
                            OnColumnCreated="RadGrid1_ColumnCreated" OnItemDataBound="RadGrid1_ItemDataBound" Height="315px">
                            <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="true" ReorderColumnsOnClient="True">
                            </ClientSettings>
                            <MasterTableView>
                                <PagerStyle AlwaysVisible="True" />
                            </MasterTableView>
                            <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                        </telerik:RadGrid>
                        <telerik:RadGrid ID="RadGrid2" runat="server" AllowPaging="True" CellSpacing="0"
                            AutoGenerateColumns="False" CssClass="RadGridCustomClass" GridLines="None" ShowGroupPanel="True"
                            BorderWidth="1px" Skin="Office2007" OnItemDataBound="RadGrid2_ItemDataBound" OnNeedDataSource="RadGrid2_NeedDataSource"
                            OnColumnCreated="RadGrid2_ColumnCreated" Height="320px">
                            <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">
                            </ClientSettings>
                            <MasterTableView ShowGroupFooter="true" AllowMultiColumnSorting="true">

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>

                                <PagerStyle AlwaysVisible="True" />
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="REGION" HeaderText="REGION">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="SHOP_CODE" HeaderText="SHOP_CODE">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="SHOP_NAME" HeaderText="SHOP_NAME">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="BILL_CODE" HeaderText="BILL_CODE">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="BILL_NAME" HeaderText="BILL_NAME">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="PRODUCT" HeaderText="PRODUCT">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="MODEL" HeaderText="MODEL">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn Aggregate="Sum" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                                        DataFormatString="{0:#,0}" FooterText=" " DataField="QTY" HeaderText="QTY">
<HeaderStyle HorizontalAlign="Right"></HeaderStyle>

<ItemStyle HorizontalAlign="Right"></ItemStyle>
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn Aggregate="Sum" DataField="WT_AMT" DataFormatString="{0:#,0}" FilterControlAltText="Filter WT_AMT column" HeaderText="WT_AMT" Resizable="False" UniqueName="WT_AMT">
                                        <HeaderStyle HorizontalAlign="Right" />
                                        <ItemStyle HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn Aggregate="Sum" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                                        DataFormatString="{0:#,0}" FooterText=" " DataField="INCT_AMT" HeaderText="INCT_AMT">
<HeaderStyle HorizontalAlign="Right"></HeaderStyle>

<ItemStyle HorizontalAlign="Right"></ItemStyle>
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="SCHEME" HeaderText="SCHEME">
                                    </telerik:GridBoundColumn>
                                </Columns>
                                <GroupByExpressions>
                                    <telerik:GridGroupByExpression>
                                        <GroupByFields>
                                            <telerik:GridGroupByField FieldName="SHOP_NAME"></telerik:GridGroupByField>
                                        </GroupByFields>
                                        <SelectFields>
                                            <telerik:GridGroupByField FieldName="SHOP_NAME" HeaderText="SHOP_NAME"></telerik:GridGroupByField>
                                        </SelectFields>
                                    </telerik:GridGroupByExpression>
                                </GroupByExpressions>
                            </MasterTableView>
                            <GroupingSettings ShowUnGroupButton="true"></GroupingSettings>

<FilterMenu EnableImageSprites="False"></FilterMenu>
                        </telerik:RadGrid>
                    </div>
                </div>
            </div>
            <div class="Clear_both">
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(".chzn-select").chosen();
    </script>
    </form>
</body>
</html>
